package com.example.user.feign;

import com.example.common.response.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(
    value = "msa-product",
    fallbackFactory = ProductFeignClientFallbackFactory.class
)
public interface ProductFeignClient {
    
    @GetMapping("/product/{id}")
    Result<Object> getProduct(@PathVariable("id") Long id);
} 